<body dir="rtl">
<div align="rtl">
   הי<?php echo ' '.$user['namef'].' '.$user['namel'].PHP_EOL; ?>
<?php
    if(count($summaries))
    {

    }
?>
         foreach ($summaries as $summary)
   <p><?php echo $summary['notes']; ?></p>
    <?php } ?>
</div>
</body>